﻿using Server.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Server
{
    [System]
    class SyncThreadContext
    {
        static readonly int MainId = Thread.CurrentThread.ManagedThreadId;

        public static bool IsInMainThread()
        {
            return Thread.CurrentThread.ManagedThreadId == MainId;
        }
    }
}

